<?php
class Data {
	protected $data = array();
	
	/**
	 * push data to data array
	 * 
	 * @param array $data
	 */
	function add($data) {
		$this->data = array_merge($this->data, $data);
	}
	
	/**
	 * add data to array
	 * 
	 * @param $key
	 * @param $data
	 */
	function set($key, $data) {
		$this->data [$key] = $data;
	}
	
	/**
	 * read data by key	
	 * 
	 * @param $key
	 * @return unknown_type
	 */
	function get($key) {
		return $this->data [$key];
	}
}
?>